import request from '@/utils/request'

// 查询SN追踪日志列表
export function listSntracelog(query) {
  return request({
    url: '/sntracelog/sntracelog/list',
    method: 'get',
    params: query
  })
}

// 查询SN追踪日志详细
export function getSntracelog(snTranId) {
  return request({
    url: '/sntracelog/sntracelog/' + snTranId,
    method: 'get'
  })
}

// 新增SN追踪日志
export function addSntracelog(data) {
  return request({
    url: '/sntracelog/sntracelog',
    method: 'post',
    data: data
  })
}

// 修改SN追踪日志
export function updateSntracelog(data) {
  return request({
    url: '/sntracelog/sntracelog',
    method: 'put',
    data: data
  })
}

// 删除SN追踪日志
export function delSntracelog(snTranId) {
  return request({
    url: '/sntracelog/sntracelog/' + snTranId,
    method: 'delete'
  })
}
